package com.yufubao.api.controller.common;

import com.yufubao.framework.annotation.SystemLog;
import com.yufubao.framework.util.SecurityUtils;
import com.yufubao.framework.interceptor.AppletInterceptor;
import com.yufubao.framework.result.ResponseResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 张一恒
 * @version 1.0
 * @description:
 * @date 2024/9/7 22:31
 */
@RestController
@RequestMapping("/applet/test")
@Slf4j
public class Test2Controller {


    @GetMapping("t2")
    @SystemLog(info = "ssss")
    public ResponseResult test() {
        System.out.println(SecurityUtils.checkUserLoc(AppletInterceptor.APPLETTHREADLOCAL));
        log.info("test");
        return ResponseResult.okResult(new String("11111"));
    }

}
